// 蜂窝蜜造平台生成代码，此文件只生成一次，不需要添加到 .beeignore

package com.fowo.api.service.impl;

import com.fowo.api.sys.annotation.DataActivity;
import com.fowo.api.sys.entity.enums.SysDataActivityAction;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * 订单管理第三方仓发货 服务实现类
 */
@Slf4j
@Service
public class NavSellOrderFBAServiceImpl
        extends NavSellOrderFBABaseServiceImpl {


    @Resource
    private NavSellOrderServiceImpl navSellOrderService;
    /**
     * 发货
     */
    @DataActivity(action = SysDataActivityAction.Other, message = "%s执行了订单发货操作")
    @Override
    @Transactional(propagation = Propagation.REQUIRES_NEW, rollbackFor = Exception.class)
    public void finalDeliver(List<Long> ids) throws Exception {
        navSellOrderService.deliver(ids);
    }

    /**
     * 截单
     */
    @Override
    public void cut(List<Long> ids) throws Exception {
        navSellOrderService.cut(ids);
    }
}
